<?php include 'header.php'; ?>
<?php include 'verifform.php'; 
include 'connect.php'; ?>

<div id="teaser">
	  </div>
<script type="text/javascript">
	//<![CDATA[
	$(document).ready(function(){

	}); 
	//]]>

</script>
	  <div id="main">

		<div id="gauche">
			<div class="nothing">
				<?php include 'sidebar.php'; ?>
			</div>
		</div>

		<div id="droite">
			<div class="nothing">
				<div class="subcolumns">
					<div class="c25l">
						<div class="subcl">
							<div class="ylert">
							<?php
							if ( isset($_SESSION['auth'] ))
							{
								include 'connect.php';
								$sql = "SELECT * FROM $table_name 
								  WHERE user_name='$_SESSION[logname]'";
								$result = mysql_query($sql);
								$infos = mysql_fetch_array($result);
							?>
   							<div class="contact vcard">
								<span class="given-name"><?php echo $infos['first_name'];?></span> <span class="family-name"><?php echo $infos['last_name'];?></span>
								<span class="street-address"><?php echo $infos['street'];?></span> 
								<span class="postal-code"><?php echo $infos['zip'];?></span> <span class="country-name"><?php echo $infos['city'];?></span>
							</div>
							<?php }
								else { include 'erreur.php'; } 
							?>
							</div>

						</div>
					</div>

					<div class="c75r">
					<script type="text/javascript">
						//<![CDATA[
						$(document).ready(function(){
							$(".tab-info > ul").tabs();
						});

						//]]>
					</script>
						<div class="subcr tab-info">
							<ul class="ui-tabs-nav">
								<li class="ui-tabs-nav-item"><a href="#fragment-1">Resume</a></li>
								<li class="ui-tabs-nav-item"><a href="#fragment-2">Education</a></li>
								<li class="ui-tabs-nav-item"><a href="#fragment-3">Parcours Professionnel</a></li>
							</ul>
							<div id="fragment-1">
								<?php include 'php/mod_cv_resume.php';?>
							</div>
							<div id="fragment-2">
								<?php include 'php/aff_cv_educ.php';?>		
							</div>
							<div id="fragment-3">
								<?php include 'php/aff_cv_pro.php';?>		
							</div>


						</div>
					</div>
				</div>
			</div>
		</div>

<? include 'footer.php'; ?>